package com.xbongbong.paas.domain.dao;

import com.xbongbong.paas.domain.entity.AttrTrashEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 *
 * @author 魏荣杰
 * @date 2021/3/2 13:46
 * @since
 * @version
 */
@Repository
@Mapper
public interface AttrTrashDao {

    Integer insert(AttrTrashEntity attrTrashEntity);

    Integer update(AttrTrashEntity attrTrashEntity);

    Integer deleteByKey(@Param("key") Long key, @Param("corpid") String corpid);

    Integer insertBatch(@Param("list") List<AttrTrashEntity> attrTrashEntityList);

    List<AttrTrashEntity> findEntitys(@Param("param") Map<String, Object> param);

    void updateBatch(@Param("list") List<AttrTrashEntity> attrTrashEntityList, @Param("corpid") String corpid);

    Integer deleteBatch(@Param("idIn") List<Long> idIn, @Param("corpid") String corpid);

    AttrTrashEntity getByKey(@Param("key") Long key, @Param("corpid") String corpid);

    Integer getEntitysCount(@Param("param") Map<String, Object> param);
}
